package com.midian.model.region;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.midian.model.common.BaseModel;

import org.hibernate.annotations.Type;

import com.vividsolutions.jts.geom.Point;

/**
 * 地区
 * 
 */
@Entity
@Table(name = "region")
public class Region extends BaseModel {
	private String code;
	private String parentId;
	private String name;
	private String pinyin;
	/**1：省，2：市，3：区，4：街道*/
	private Integer level;
	/**1:推荐2：不推荐*/
	private Integer isRecommend = 1;
	/**优先级*/
	private Integer priority = 100;
	/**是否禁用1：是2：否*/
	private Integer disable = 2;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Integer getDisable() {
		return disable;
	}

	public void setDisable(Integer disable) {
		this.disable = disable;
	}
}
